package org.al.poc.router;

import java.awt.Color;

import org.al.poc.router.gui.RouterGuiView;

public class LogManager {
	
	private static RouterGuiView view;

	
	
	
	public static RouterGuiView getView() {
		return view;
	}

	public static void setView(RouterGuiView view) {
		LogManager.view = view;
	}

	

	public static synchronized void logserver1Down() {
		if (view == null) return;
		view.server1Panel.setBackground(Color.RED);
	}

	
	public static synchronized void logserver2Down() {
		if (view == null) return;
		view.server2Panel.setBackground(Color.RED);
	}
	
}
